<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>


        body{
            display: flex;
        }
        .left{
            width: 50%;
            height: 500px;
            display: flex;
        }
        .right{
            width: 50%;
            height: 1000px;
        }

        .shopDiv{
            background-color: rgba(0,0,0,0.5);
            left: 0;
            top: 0;
            position: absolute;
            visibility: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;

        }


        .contentDiv{
            width: 550px;
            height: 350px;
            background-color: white;
            border: 1px solid black;
            padding: 50px;

        }
        .back{
            position: relative;
            left: 370px;
            bottom: -200px;
        }


        .shopTable{
            position: relative;
            width: 450px;
            height: auto;
            left: 50px;
        }

        .sumSpan{
            position: relative;
            width: 100px;
            height: 10px;
            left: 400px;
            bottom: -195px;
        }


    </style>

    <script src="book.js"></script>
    <script src="bookService.js"></script>
</head>
<body>

        <div class="left">
            <table border="1" width="50%">
                <thead><tr><th>图书信息</th></tr></thead>
                <tbody id="moreData">
                </tbody>
            </table>
            <table border="1" width="50%">
                <thead><tr><th>图片</th></tr></thead>
                <tbody id="moreImg">
                </tbody>
            </table>
        </div>
        <div class="right">
            <table  border="1" width="80%">
                <thead>
                <tr><th></th><th>图书名</th><th>作者</th><th>出版日期</th><th>售价</th><th>操作</th></tr>
                </thead>
                <tbody id="data"></tbody>
            </table>
            图书名：<input type="text" id="nameTxt"><input type="button"  value="查找" onclick="findByName()">
        </div>
        <div class="shopDiv" id="shopDiv">
            <input class="back" type="button" value="继续购物" onclick="backToMain()">
            <span class="sumSpan" id="sumSpan"></span>
            <div class="contentDiv">
            <table border="1" class="shopTable">
                <thead>
                <tr><th>商品名</th><th>单价</th><th>数量</th><th>总价</th><th>移除商品</th></tr>
                </thead>
                <tbody id="shopTable"></tbody>
            </table>

            </div>
        </div>

</body>
</html>